// bitcoin implied volatility
import delimited "build/input/t3/bitvol_pseudo.csv", clear 
rename bitvol iv_btc

gen date2 = date(date, "MDY", 2050)
format date2 %td
drop date
rename date2 date
order date

tempfile iv_btc
save `iv_btc'

// eth implied volatility
import delimited "build/input/t3/ethvol_pseudo.csv", clear 
rename ethereumvolatilityindex iv_eth


gen date2 = date(date, "MDY", 2050)
format date2 %td
drop date
rename date2 date
order date

merge 1:1 date using `iv_btc', nogen
sort date
tsset date

save "build/output/implied_vol.dta", replace
